package com.black.platform.user.service.handler;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.black.common.web.PageQuery;
import com.black.platform.user.po.ShareUser;
import com.black.platform.user.vo.ShareUserPositionVo;

import java.util.Set;

/**
 * @author linwenfeng
 */
public interface ShareUserHandlerService {


    IPage<ShareUser> search(PageQuery<ShareUser> searchVo);

    ShareUser findUserByUsername(String username);

    ShareUserPositionVo getShareUserPositionVoByUserId(Long userId);

    boolean saveOrUpdate(ShareUserPositionVo shareUserPositionVo);

    boolean resetPassword(Long userId);

    boolean close(Long userId);

    boolean open(Long userId);

    ShareUser getShareUserById(Long userId);

    Set<Long> getShareUserHavingRoleIdByUserId(Long userId);

    ShareUser findUserByOtherId(String otherId,String idType);

    ShareUser register(ShareUser shareUser);
}
